<template>
  <!-- 前面的铺垫练习 -->
  <div>详情页：{{ $route.query.id }}</div>
</template>

<script>
import { productsDetailApi } from "@/request/api";
export default {
  async created() {
    const productsDetailRes = await productsDetailApi(this.$route.query.id);
    console.log({ productsDetailRes });
  },
};
</script>

<style>
</style>